require 'sidekiq/web'

Flowy::Application.routes.draw do
  mount Sidekiq::Web => '/sidekiq'

  root :to => "flowy#index"
  resources :weibo
  resources :tencent
  resources :flowy, :path => 's' do
    collection do
      post :search, :login, :run
      get :account, :get_pass, :auto_access
    end
  end
  resources :url_tracks, :path => 'ut', :only => :show
  scope :module => "admin" do
    resources :summary, :only => :index
    resources :replies
    resources :histories do
      collection do
        get  :get_comments
        post :add_comment
        delete :destroy_tweets, :clear_task
      end
    end
    resources :sns do
      collection do
        put :keep_access, :revive, :auto_access
        delete :stop, :destroy
      end
    end
    resources :my, :only => :index
  end

end
